/* 
 * Cashbox is the legal property of its developers, whose names are listed in the copyright file included
 * with this source distribution.
 * 
 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
 * General Public License as published by the Free Software Foundation; either version 2 of the License,
 * or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
 * Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with this program; if not,
 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#import "CBBaseReport.h"

@interface CBBaseReport (CoreDataGeneratedPrimitiveAccessors)
- (NSNumber *)primitiveStartDateType;
- (void)setPrimitiveStartDateType:(NSNumber *)value;
- (NSNumber *)primitiveEndDateType;
- (void)setPrimitiveEndDateType:(NSNumber *)value;
- (NSNumber *)primitiveTransactionType;
- (void)setPrimitiveTransactionType:(NSNumber *)value;
- (NSNumber *)primitiveIncludeUnlabeled;
- (void)setPrimitiveIncludeUnlabeled:(NSNumber *)value;
@end

@implementation CBBaseReport

#pragma mark properties
// ----------------------------------------------------------------------------------------------------
// properties
// ----------------------------------------------------------------------------------------------------

@dynamic account;
@dynamic endDate;
@dynamic startDate;

- (CBDateType)startDateType {
    NSNumber * tmpValue;
    [self willAccessValueForKey:@"startDateType"];
    tmpValue = [self primitiveStartDateType];
    [self didAccessValueForKey:@"startDateType"];
    return (tmpValue == nil) ? 0 : [tmpValue intValue];
}

- (void)setStartDateType:(CBDateType)value {
	NSNumber *temp = [[NSNumber alloc] initWithInt:value];
    [self willChangeValueForKey:@"startDateType"];
    [self setPrimitiveStartDateType:temp];
    [self didChangeValueForKey:@"startDateType"];
	[temp release];
}

- (CBDateType)endDateType {
    NSNumber * tmpValue;
    [self willAccessValueForKey:@"endDateType"];
    tmpValue = [self primitiveEndDateType];
    [self didAccessValueForKey:@"endDateType"];
    return (tmpValue == nil) ? 0 : [tmpValue intValue];
}

- (void)setEndDateType:(CBDateType)value {
	NSNumber *temp = [[NSNumber alloc] initWithInt:value];
    [self willChangeValueForKey:@"endDateType"];
    [self setPrimitiveEndDateType:temp];
    [self didChangeValueForKey:@"endDateType"];
	[temp release];
}

- (CBTransactionType)transactionType {
    NSNumber * tmpValue;
    [self willAccessValueForKey:@"transactionType"];
    tmpValue = [self primitiveTransactionType];
    [self didAccessValueForKey:@"transactionType"];
    return (tmpValue == nil) ? 0 : [tmpValue intValue];
}

- (void)setTransactionType:(CBTransactionType)value {
	NSNumber *temp = [[NSNumber alloc] initWithInt:value];
    [self willChangeValueForKey:@"transactionType"];
    [self setPrimitiveTransactionType:temp];
    [self didChangeValueForKey:@"transactionType"];
	[temp release];
}


- (BOOL)includeUnlabeled {
    NSNumber * tmpValue;
    [self willAccessValueForKey:@"includeUnlabeled"];
    tmpValue = [self primitiveIncludeUnlabeled];
    [self didAccessValueForKey:@"includeUnlabeled"];
    return (tmpValue == nil) ? 0 : [tmpValue intValue];
}

- (void)setIncludeUnlabeled:(BOOL)value {
	NSNumber *temp = [[NSNumber alloc] initWithInt:value];
    [self willChangeValueForKey:@"includeUnlabeled"];
    [self setPrimitiveIncludeUnlabeled:temp];
    [self didChangeValueForKey:@"includeUnlabeled"];
	[temp release];
}


@end
